package proxy;

public class DogProxy implements Animals {

    private Dog dog;

    public DogProxy(){}

    public DogProxy(Dog dog){
        this.dog = dog;
    }

    @Override
    public void eat() {
        System.out.println("狗狗吃之前输出");
        dog.eat();
        System.out.println("狗狗吃之后输出");
    }
}
